public class Submarine implements Swimmmer {
	private String name;
	public Submarine(String name) {
		this.name=name;
	}
	public String getName() {
		return name;
	}

	@override
	public void swim() {
		System.out.printf("潜水艇%s 潜行%n",name);
	}
}


